<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>RF22: RF22 Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">RF22
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">RF22 Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="RF22" -->
<p>Send and receive unaddressed, unreliable datagrams.  
 <a href="classRF22.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="RF22_8h_source.html">RF22.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for RF22:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classRF22.png" usemap="#RF22_map" alt=""/>
  <map id="RF22_map" name="RF22_map">
<area href="classRF22Datagram.html" title="RF22 subclass for addressed, unreliable messages." alt="RF22Datagram" shape="rect" coords="0,56,141,80"/>
<area href="classRF22ReliableDatagram.html" title="RF22 subclass for sending addressed, acknowledged, retransmitted datagrams." alt="RF22ReliableDatagram" shape="rect" coords="0,112,141,136"/>
<area href="classRF22Router.html" title="RF22 subclass for sending addressed, optionally acknowledged datagrams multi-hop routed across a netw..." alt="RF22Router" shape="rect" coords="0,168,141,192"/>
<area href="classRF22Mesh.html" title="RF22 subclass for sending addressed, optionally acknowledged datagrams multi-hop routed across a netw..." alt="RF22Mesh" shape="rect" coords="0,224,141,248"/>
</map>
 </div></div>

<p><a href="classRF22-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structRF22_1_1ModemConfig.html">ModemConfig</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines register values for a set of modem configuration registers.  <a href="structRF22_1_1ModemConfig.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1">ModemConfigChoice</a> { <br/>
&#160;&#160;<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ac7e1fdd5ade4bcf659565eae235e1ad2">UnmodulatedCarrier</a> =  0, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a57cad597472646c4dc4cb85aa7c9cbe9">FSK_PN9_Rb2Fd5</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ab706c642e0b7242e0685c42babb0ef7b">FSK_Rb2Fd5</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ab78263478bc47e320e3e14184310bdb1">FSK_Rb2_4Fd36</a>, 
<br/>
&#160;&#160;<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a140ea7219f2b3c8a034347702e384a36">FSK_Rb4_8Fd45</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a2d893806d31eccebdfef6cf7f89f1257">FSK_Rb9_6Fd45</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ae0a4dcc0c46f1d354285f3079cba782c">FSK_Rb19_2Fd9_6</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a7021c80e3a94842e44e35d87a2befa62">FSK_Rb38_4Fd19_6</a>, 
<br/>
&#160;&#160;<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a6ada70eaab5a4e3f4d5a0954d4a0631a">FSK_Rb57_6Fd28_8</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a13a03a8009dc81941f93b924c01d2811">FSK_Rb125Fd125</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a156fcbf8d375d6a2f8bbb46824aca430">GFSK_Rb2Fd5</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a5af02fa49297aa13b0efc8306c3c10aa">GFSK_Rb2_4Fd36</a>, 
<br/>
&#160;&#160;<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ad9afd09e7ea98e1d15be0f7470f9b721">GFSK_Rb4_8Fd45</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ab84a580ab517faa1221cc166dcbc331a">GFSK_Rb9_6Fd45</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ac4558752ce6bab0f01cda50c5cc31423">GFSK_Rb19_2Fd9_6</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a8f7c5a5c02f46e5bba221d9bab276810">GFSK_Rb38_4Fd19_6</a>, 
<br/>
&#160;&#160;<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a93957ac322afdae70620bc5a592468b7">GFSK_Rb57_6Fd28_8</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ae77ddcf9d0f51b0e9731e00dfcaebc20">GFSK_Rb125Fd125</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1af3a09faaa284b438b3d4da9fc6058aa4">OOK_Rb1_2Bw75</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a60e4b4348d0c08ada8b111f574e2a308">OOK_Rb2_4Bw335</a>, 
<br/>
&#160;&#160;<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a57fa115fb0aa210bbcf6cf6387eac7b0">OOK_Rb4_8Bw335</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ab3f929c9c8da2c05dbdbb0439a4e2c7a">OOK_Rb9_6Bw335</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a106af5c9d04c9edcd00b6e89c3345cb8">OOK_Rb19_2Bw335</a>, 
<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1af0bafb7fdc78209640c3c715626baa07">OOK_Rb38_4Bw335</a>, 
<br/>
&#160;&#160;<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1a8bef88fd6beaa3fd3696baa5cad272c5">OOK_Rb40Bw335</a>
<br/>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#aadb6f0983a830b4608948d110b8a5ed9">RF22</a> (uint8_t slaveSelectPin=10, uint8_t interrupt=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a1c572667477ef36daeae01c52f553e5b">reset</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead</a> (uint8_t reg)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite</a> (uint8_t reg, uint8_t val)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#aa90b554e2ec209f6bd8bcef17b11ebb8">spiBurstRead</a> (uint8_t reg, uint8_t *dest, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a361154fdf3b19ba6a5a75f832df6a1b8">spiBurstWrite</a> (uint8_t reg, uint8_t *src, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#adb03689501d256ce896ee688c7ce83e0">statusRead</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ad2b1d47ce5efa8e38330be8d11741dab">adcRead</a> (uint8_t adcsel=RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR, uint8_t adcref=RF22_ADCREF_BANDGAP_VOLTAGE, uint8_t adcgain=0, uint8_t adcoffs=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a198541714d52ac7bc2c9ef10c2e28bb2">temperatureRead</a> (uint8_t tsrange=RF22_TSRANGE_M64_64C, uint8_t tvoffs=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a7a0b9fb632f05b2eb0c559b7edb99ef5">wutRead</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#aaa1cfb845d90a0d83a508e2bc7f3492f">setWutPeriod</a> (uint16_t wtm, uint8_t wtr=0, uint8_t wtd=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a0e7991fe8e280e2ad1a1b1643e7cf8d7">setFrequency</a> (float centre)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a9e005e1170adb82a4b23c3865c059489">setFHStepSize</a> (uint8_t fhs)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a75b29b4a26da4000b3b1922efc5163aa">setFHChannel</a> (uint8_t fhch)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a022c0040eb83a6f8a02b274b74a3ba67">rssiRead</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a24eb41c972beb66d4546552e571c2e46">ezmacStatusRead</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a575ea3832c613df195bb2ee6201a47b8">setMode</a> (uint8_t mode)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ac4aebfef449c26e2dc2a9ef0737bddec">setModeIdle</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a1e251effd6282a9a0de7dbffa192930d">setModeRx</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#afe3ecb6c7a99cd007ac1ac1e77b6d5a6">setModeTx</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a5b8a05586f69cbbae0589e5aabf46319">setTxPower</a> (uint8_t power)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ab1a1260a3f97788ad88e9c68b5d8549e">setModemRegisters</a> (<a class="el" href="structRF22_1_1ModemConfig.html">ModemConfig</a> *config)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a266974655d5291ba1fa018991a7a818c">setModemConfig</a> (<a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1">ModemConfigChoice</a> index)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#af899b8b15c5c4b345e7f9860d45d0292">available</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#aaab37b212a4f003b00040caec8e1a343">waitAvailable</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ae7ba6ed148434bea785b2aaa1dedf2d3">waitAvailableTimeout</a> (uint16_t timeout)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a2f6f295a313e1ebf244b91338ed22f13">recv</a> (uint8_t *buf, uint8_t *len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a217941f83c9f645350cf7d5d16d8cc3d">send</a> (uint8_t *data, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a8ce6d4f63ce1ea37ab108c01f9476555">waitPacketSent</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ae526f968b1571e8bf71344c2f8a425d5">setPromiscuous</a> (boolean promiscuous)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ad61bb70ba171a81fa8803219fdc2a433">headerTo</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a3d8d98b524d14519f6c39d7136b5a422">headerFrom</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a74b21003336cc7c6aac1dad128b1f205">headerId</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a3ecbb26863c8bd4bf8cbacde37b73d4f">headerFlags</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a07786683889cac7f62ff649d5338b838">lastRssi</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a3ef02152274ab7ed9f01bf9d14323b2f">setPreambleLength</a> (uint8_t nibbles)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a4ac022de6099c087a3188c4d6028f97f">setSyncWords</a> (uint8_t *syncWords, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a68be2dd2c22416a9c70fabea8928ff1a">clearRxBuf</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#addd900063898086342232db06edc4008">clearTxBuf</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a9c7e029590cfe83b364c7c02559575be">fillTxBuf</a> (uint8_t *data, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a199d9f0b69ce539097d729376c551fb8">appendTxBuf</a> (uint8_t *data, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a6540f75448cca7b21b69bce0b5816cd9">sendNextFragment</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a9edc9967b9536074e5f58dd4a5815def">readNextFragment</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a80f1d86f8ce76126639de6aad89c0389">resetFifos</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a2bdccb7c4084634d246add95005d5e53">resetRxFifo</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#adffb1a63931286ecc01ffec9d99cfa6f">resetTxFifo</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#aa9a67b1e368b56722c52ab79ded84e82">handleExternalInterrupt</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ab7f8d2337bdde953983cd0dea5d847ba">handleWakeupTimerInterrupt</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ac45b0f89bb116d546cc5e90410173827">setHeaderTo</a> (uint8_t to)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#af446e330a074e528253f3c7706b14b09">setHeaderFrom</a> (uint8_t from)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a7a36edc1913d6cec8892af8ea8a28ef7">setHeaderId</a> (uint8_t id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#adb3ce5021865459e770e45cc434a0dd0">setHeaderFlags</a> (uint8_t flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#ae714b47446f34aca958df75b75f811b3">startTransmit</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRF22.html#a7c1a0bfb8f05d0af540e37e4883e212e">restartTransmit</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Send and receive unaddressed, unreliable datagrams. </p>
<p>This base class provides basic functions for sending and receiving unaddressed, unreliable datagrams of arbitrary length to 255 octets per packet.</p>
<p>Subclasses may use this class to implement reliable, addressed datagrams and streams, mesh routers, repeaters, translators etc.</p>
<p>On transmission, the TO and FROM addresses default to 0x00, unless changed by a subclass. On reception the TO addressed is checked against the node address (defaults to 0x00) or the broadcast address (which is 0xff). The ID and FLAGS are set to 0, and not checked by this class. This permits use of the this base <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> class as an unaddresed, unreliable datagram service. Subclasses are expected to change this behaviour to add node address, ids, retransmission etc</p>
<p>Naturally, for any 2 radios to communicate that must be configured to use the same frequence and modulation scheme. </p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1"></a><!-- doxytag: member="RF22::ModemConfigChoice" ref="a76cd019f98e4f17d9ec00e54e5947ca1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1">RF22::ModemConfigChoice</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Choices for <a class="el" href="classRF22.html#a266974655d5291ba1fa018991a7a818c">setModemConfig()</a> for a selected subset of common modulation types, and data rates. If you need another configuration, use the register calculator at "http://www.hoperf.com/upfile/RF22B 23B 31B 42B 43B Register Settings_RevB1-v5.xls" and call <a class="el" href="classRF22.html#ab1a1260a3f97788ad88e9c68b5d8549e">setModemRegisters()</a> with your desired settings These are indexes into _modemConfig </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ac7e1fdd5ade4bcf659565eae235e1ad2"></a><!-- doxytag: member="UnmodulatedCarrier" ref="a76cd019f98e4f17d9ec00e54e5947ca1ac7e1fdd5ade4bcf659565eae235e1ad2" args="" -->UnmodulatedCarrier</em>&nbsp;</td><td>
<p>Unmodulated carrier for testing. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a57cad597472646c4dc4cb85aa7c9cbe9"></a><!-- doxytag: member="FSK_PN9_Rb2Fd5" ref="a76cd019f98e4f17d9ec00e54e5947ca1a57cad597472646c4dc4cb85aa7c9cbe9" args="" -->FSK_PN9_Rb2Fd5</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 2kbs, Fd = 5kHz, PN9 random modulation for testing. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ab706c642e0b7242e0685c42babb0ef7b"></a><!-- doxytag: member="FSK_Rb2Fd5" ref="a76cd019f98e4f17d9ec00e54e5947ca1ab706c642e0b7242e0685c42babb0ef7b" args="" -->FSK_Rb2Fd5</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 2kbs, Fd = 5kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ab78263478bc47e320e3e14184310bdb1"></a><!-- doxytag: member="FSK_Rb2_4Fd36" ref="a76cd019f98e4f17d9ec00e54e5947ca1ab78263478bc47e320e3e14184310bdb1" args="" -->FSK_Rb2_4Fd36</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 2.4kbs, Fd = 36kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a140ea7219f2b3c8a034347702e384a36"></a><!-- doxytag: member="FSK_Rb4_8Fd45" ref="a76cd019f98e4f17d9ec00e54e5947ca1a140ea7219f2b3c8a034347702e384a36" args="" -->FSK_Rb4_8Fd45</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 4.8kbs, Fd = 45kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a2d893806d31eccebdfef6cf7f89f1257"></a><!-- doxytag: member="FSK_Rb9_6Fd45" ref="a76cd019f98e4f17d9ec00e54e5947ca1a2d893806d31eccebdfef6cf7f89f1257" args="" -->FSK_Rb9_6Fd45</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 9.6kbs, Fd = 45kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ae0a4dcc0c46f1d354285f3079cba782c"></a><!-- doxytag: member="FSK_Rb19_2Fd9_6" ref="a76cd019f98e4f17d9ec00e54e5947ca1ae0a4dcc0c46f1d354285f3079cba782c" args="" -->FSK_Rb19_2Fd9_6</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 19.2kbs, Fd = 9.6kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a7021c80e3a94842e44e35d87a2befa62"></a><!-- doxytag: member="FSK_Rb38_4Fd19_6" ref="a76cd019f98e4f17d9ec00e54e5947ca1a7021c80e3a94842e44e35d87a2befa62" args="" -->FSK_Rb38_4Fd19_6</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 38.4kbs, Fd = 19.6kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a6ada70eaab5a4e3f4d5a0954d4a0631a"></a><!-- doxytag: member="FSK_Rb57_6Fd28_8" ref="a76cd019f98e4f17d9ec00e54e5947ca1a6ada70eaab5a4e3f4d5a0954d4a0631a" args="" -->FSK_Rb57_6Fd28_8</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 57.6kbs, Fd = 28.8kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a13a03a8009dc81941f93b924c01d2811"></a><!-- doxytag: member="FSK_Rb125Fd125" ref="a76cd019f98e4f17d9ec00e54e5947ca1a13a03a8009dc81941f93b924c01d2811" args="" -->FSK_Rb125Fd125</em>&nbsp;</td><td>
<p>FSK, No Manchester, Rb = 125kbs, Fd = 125kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a156fcbf8d375d6a2f8bbb46824aca430"></a><!-- doxytag: member="GFSK_Rb2Fd5" ref="a76cd019f98e4f17d9ec00e54e5947ca1a156fcbf8d375d6a2f8bbb46824aca430" args="" -->GFSK_Rb2Fd5</em>&nbsp;</td><td>
<p>GFSK, No Manchester, Rb = 2kbs, Fd = 5kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a5af02fa49297aa13b0efc8306c3c10aa"></a><!-- doxytag: member="GFSK_Rb2_4Fd36" ref="a76cd019f98e4f17d9ec00e54e5947ca1a5af02fa49297aa13b0efc8306c3c10aa" args="" -->GFSK_Rb2_4Fd36</em>&nbsp;</td><td>
<p>GFSK, No Manchester, Rb = 2.4kbs, Fd = 36kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ad9afd09e7ea98e1d15be0f7470f9b721"></a><!-- doxytag: member="GFSK_Rb4_8Fd45" ref="a76cd019f98e4f17d9ec00e54e5947ca1ad9afd09e7ea98e1d15be0f7470f9b721" args="" -->GFSK_Rb4_8Fd45</em>&nbsp;</td><td>
<p>GFSK, No Manchester, Rb = 4.8kbs, Fd = 45kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ab84a580ab517faa1221cc166dcbc331a"></a><!-- doxytag: member="GFSK_Rb9_6Fd45" ref="a76cd019f98e4f17d9ec00e54e5947ca1ab84a580ab517faa1221cc166dcbc331a" args="" -->GFSK_Rb9_6Fd45</em>&nbsp;</td><td>
<p>GFSK, No Manchester, Rb = 9.6kbs, Fd = 45kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ac4558752ce6bab0f01cda50c5cc31423"></a><!-- doxytag: member="GFSK_Rb19_2Fd9_6" ref="a76cd019f98e4f17d9ec00e54e5947ca1ac4558752ce6bab0f01cda50c5cc31423" args="" -->GFSK_Rb19_2Fd9_6</em>&nbsp;</td><td>
<p>GFSK, No Manchester, Rb = 19.2kbs, Fd = 9.6kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a8f7c5a5c02f46e5bba221d9bab276810"></a><!-- doxytag: member="GFSK_Rb38_4Fd19_6" ref="a76cd019f98e4f17d9ec00e54e5947ca1a8f7c5a5c02f46e5bba221d9bab276810" args="" -->GFSK_Rb38_4Fd19_6</em>&nbsp;</td><td>
<p>GFSK, No Manchester, Rb = 38.4kbs, Fd = 19.6kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a93957ac322afdae70620bc5a592468b7"></a><!-- doxytag: member="GFSK_Rb57_6Fd28_8" ref="a76cd019f98e4f17d9ec00e54e5947ca1a93957ac322afdae70620bc5a592468b7" args="" -->GFSK_Rb57_6Fd28_8</em>&nbsp;</td><td>
<p>GFSK, No Manchester, Rb = 57.6kbs, Fd = 28.8kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ae77ddcf9d0f51b0e9731e00dfcaebc20"></a><!-- doxytag: member="GFSK_Rb125Fd125" ref="a76cd019f98e4f17d9ec00e54e5947ca1ae77ddcf9d0f51b0e9731e00dfcaebc20" args="" -->GFSK_Rb125Fd125</em>&nbsp;</td><td>
<p>GFSK, No Manchester, Rb = 125kbs, Fd = 125kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1af3a09faaa284b438b3d4da9fc6058aa4"></a><!-- doxytag: member="OOK_Rb1_2Bw75" ref="a76cd019f98e4f17d9ec00e54e5947ca1af3a09faaa284b438b3d4da9fc6058aa4" args="" -->OOK_Rb1_2Bw75</em>&nbsp;</td><td>
<p>OOK, No Manchester, Rb = 1.2kbs, Rx Bandwidth = 75kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a60e4b4348d0c08ada8b111f574e2a308"></a><!-- doxytag: member="OOK_Rb2_4Bw335" ref="a76cd019f98e4f17d9ec00e54e5947ca1a60e4b4348d0c08ada8b111f574e2a308" args="" -->OOK_Rb2_4Bw335</em>&nbsp;</td><td>
<p>OOK, No Manchester, Rb = 2.4kbs, Rx Bandwidth = 335kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a57fa115fb0aa210bbcf6cf6387eac7b0"></a><!-- doxytag: member="OOK_Rb4_8Bw335" ref="a76cd019f98e4f17d9ec00e54e5947ca1a57fa115fb0aa210bbcf6cf6387eac7b0" args="" -->OOK_Rb4_8Bw335</em>&nbsp;</td><td>
<p>OOK, No Manchester, Rb = 4.8kbs, Rx Bandwidth = 335kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1ab3f929c9c8da2c05dbdbb0439a4e2c7a"></a><!-- doxytag: member="OOK_Rb9_6Bw335" ref="a76cd019f98e4f17d9ec00e54e5947ca1ab3f929c9c8da2c05dbdbb0439a4e2c7a" args="" -->OOK_Rb9_6Bw335</em>&nbsp;</td><td>
<p>OOK, No Manchester, Rb = 9.6kbs, Rx Bandwidth = 335kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a106af5c9d04c9edcd00b6e89c3345cb8"></a><!-- doxytag: member="OOK_Rb19_2Bw335" ref="a76cd019f98e4f17d9ec00e54e5947ca1a106af5c9d04c9edcd00b6e89c3345cb8" args="" -->OOK_Rb19_2Bw335</em>&nbsp;</td><td>
<p>OOK, No Manchester, Rb = 19.2kbs, Rx Bandwidth = 335kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1af0bafb7fdc78209640c3c715626baa07"></a><!-- doxytag: member="OOK_Rb38_4Bw335" ref="a76cd019f98e4f17d9ec00e54e5947ca1af0bafb7fdc78209640c3c715626baa07" args="" -->OOK_Rb38_4Bw335</em>&nbsp;</td><td>
<p>OOK, No Manchester, Rb = 38.4kbs, Rx Bandwidth = 335kHz. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a76cd019f98e4f17d9ec00e54e5947ca1a8bef88fd6beaa3fd3696baa5cad272c5"></a><!-- doxytag: member="OOK_Rb40Bw335" ref="a76cd019f98e4f17d9ec00e54e5947ca1a8bef88fd6beaa3fd3696baa5cad272c5" args="" -->OOK_Rb40Bw335</em>&nbsp;</td><td>
<p>OOK, No Manchester, Rb = 40kbs, Rx Bandwidth = 335kHz. </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aadb6f0983a830b4608948d110b8a5ed9"></a><!-- doxytag: member="RF22::RF22" ref="aadb6f0983a830b4608948d110b8a5ed9" args="(uint8_t slaveSelectPin=10, uint8_t interrupt=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RF22::RF22 </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>slaveSelectPin</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>interrupt</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor. You can have multiple instances, but each instance must have its own interrupt and slave select pin. After constructing, you must call <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a> to initialise the intnerface and the radio module </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">slaveSelectPin</td><td>the Arduino pin number of the output to use to select the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> before accessing it </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">interrupt</td><td>The interrupt number to use. Default is interrupt 0 (Arduino input pin 2) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad2b1d47ce5efa8e38330be8d11741dab"></a><!-- doxytag: member="RF22::adcRead" ref="ad2b1d47ce5efa8e38330be8d11741dab" args="(uint8_t adcsel=RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR, uint8_t adcref=RF22_ADCREF_BANDGAP_VOLTAGE, uint8_t adcgain=0, uint8_t adcoffs=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::adcRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>adcsel</em> = <code>RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>adcref</em> = <code>RF22_ADCREF_BANDGAP_VOLTAGE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>adcgain</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>adcoffs</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads a value from the on-chip analog-digital converter </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">adcsel</td><td>Selects the ADC input to measure. One of RF22_ADCSEL_*. Defaults to the internal temperature sensor </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">adcref</td><td>Specifies the refernce voltage to use. One of RF22_ADCREF_*. Defaults to the internal bandgap voltage. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">adcgain</td><td>Amplifier gain selection. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">adcoffs</td><td>Amplifier offseet (0 to 15). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The analog value. 0 to 255. </dd></dl>

<p>References <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>, and <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#a198541714d52ac7bc2c9ef10c2e28bb2">temperatureRead()</a>.</p>

</div>
</div>
<a class="anchor" id="a199d9f0b69ce539097d729376c551fb8"></a><!-- doxytag: member="RF22::appendTxBuf" ref="a199d9f0b69ce539097d729376c551fb8" args="(uint8_t *data, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::appendTxBuf </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Appends the transmitter buffer with the data of a mesage to be sent </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Array of data bytes to be sent (0 to 255) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>Number of data bytes in data </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>false if the resulting message would exceed RF22_MAX_MESSAGE_LEN, else true </dd></dl>

<p>Referenced by <a class="el" href="classRF22.html#a9c7e029590cfe83b364c7c02559575be">fillTxBuf()</a>.</p>

</div>
</div>
<a class="anchor" id="af899b8b15c5c4b345e7f9860d45d0292"></a><!-- doxytag: member="RF22::available" ref="af899b8b15c5c4b345e7f9860d45d0292" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::available </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Starts the receiver and checks whether a received message is available. This can be called multiple times in a timeout loop </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if a complete, valid message has been received and is able to be retrieved by <a class="el" href="classRF22.html#a2f6f295a313e1ebf244b91338ed22f13">recv()</a> </dd></dl>

<p>References <a class="el" href="classRF22.html#a1e251effd6282a9a0de7dbffa192930d">setModeRx()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#a2f6f295a313e1ebf244b91338ed22f13">recv()</a>, <a class="el" href="classRF22ReliableDatagram.html#a49dbf986b90cac7f1476ec56a4beab38">RF22ReliableDatagram::recvfromAck()</a>, <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>, <a class="el" href="classRF22.html#aaab37b212a4f003b00040caec8e1a343">waitAvailable()</a>, and <a class="el" href="classRF22.html#ae7ba6ed148434bea785b2aaa1dedf2d3">waitAvailableTimeout()</a>.</p>

</div>
</div>
<a class="anchor" id="a68be2dd2c22416a9c70fabea8928ff1a"></a><!-- doxytag: member="RF22::clearRxBuf" ref="a68be2dd2c22416a9c70fabea8928ff1a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::clearRxBuf </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Clears the receiver buffer. Internal use only </p>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>, <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>, <a class="el" href="classRF22.html#a2f6f295a313e1ebf244b91338ed22f13">recv()</a>, and <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>.</p>

</div>
</div>
<a class="anchor" id="addd900063898086342232db06edc4008"></a><!-- doxytag: member="RF22::clearTxBuf" ref="addd900063898086342232db06edc4008" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::clearTxBuf </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Clears the transmitter buffer Internal use only </p>

<p>Referenced by <a class="el" href="classRF22.html#a9c7e029590cfe83b364c7c02559575be">fillTxBuf()</a>, and <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>.</p>

</div>
</div>
<a class="anchor" id="a24eb41c972beb66d4546552e571c2e46"></a><!-- doxytag: member="RF22::ezmacStatusRead" ref="a24eb41c972beb66d4546552e571c2e46" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::ezmacStatusRead </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads and returns the current EZMAC value from register RF22_REG_31_EZMAC_STATUS </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The current EZMAC value </dd></dl>

<p>References <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>.</p>

</div>
</div>
<a class="anchor" id="a9c7e029590cfe83b364c7c02559575be"></a><!-- doxytag: member="RF22::fillTxBuf" ref="a9c7e029590cfe83b364c7c02559575be" args="(uint8_t *data, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::fillTxBuf </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fills the transmitter buffer with the data of a mesage to be sent </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Array of data bytes to be sent (0 to 255) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>Number of data bytes in data </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true </dd></dl>

<p>References <a class="el" href="classRF22.html#a199d9f0b69ce539097d729376c551fb8">appendTxBuf()</a>, and <a class="el" href="classRF22.html#addd900063898086342232db06edc4008">clearTxBuf()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#a217941f83c9f645350cf7d5d16d8cc3d">send()</a>.</p>

</div>
</div>
<a class="anchor" id="aa9a67b1e368b56722c52ab79ded84e82"></a><!-- doxytag: member="RF22::handleExternalInterrupt" ref="aa9a67b1e368b56722c52ab79ded84e82" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::handleExternalInterrupt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function will be called by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a> if an <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> external interrupt occurs. This can only happen if external interrupts are enabled in the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> (which they are not by default). Subclasses may override this function to get control when an <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> external interrupt occurs. </p>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>.</p>

</div>
</div>
<a class="anchor" id="ae4d40dd937c71fa0094a838297fc315d"></a><!-- doxytag: member="RF22::handleInterrupt" ref="ae4d40dd937c71fa0094a838297fc315d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::handleInterrupt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is a low level function to handle the interrupts for one instance of <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a>. Called automatically by isr0() and isr1() Should not need to be called. </p>

<p>References <a class="el" href="classRF22.html#a68be2dd2c22416a9c70fabea8928ff1a">clearRxBuf()</a>, <a class="el" href="classRF22.html#aa9a67b1e368b56722c52ab79ded84e82">handleExternalInterrupt()</a>, <a class="el" href="classRF22.html#ab7f8d2337bdde953983cd0dea5d847ba">handleWakeupTimerInterrupt()</a>, <a class="el" href="classRF22.html#a9edc9967b9536074e5f58dd4a5815def">readNextFragment()</a>, <a class="el" href="classRF22.html#a80f1d86f8ce76126639de6aad89c0389">resetFifos()</a>, <a class="el" href="classRF22.html#a2bdccb7c4084634d246add95005d5e53">resetRxFifo()</a>, <a class="el" href="classRF22.html#a7c1a0bfb8f05d0af540e37e4883e212e">restartTransmit()</a>, <a class="el" href="classRF22.html#a6540f75448cca7b21b69bce0b5816cd9">sendNextFragment()</a>, <a class="el" href="classRF22.html#a1e251effd6282a9a0de7dbffa192930d">setModeRx()</a>, <a class="el" href="classRF22.html#aa90b554e2ec209f6bd8bcef17b11ebb8">spiBurstRead()</a>, and <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>.</p>

</div>
</div>
<a class="anchor" id="ab7f8d2337bdde953983cd0dea5d847ba"></a><!-- doxytag: member="RF22::handleWakeupTimerInterrupt" ref="ab7f8d2337bdde953983cd0dea5d847ba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::handleWakeupTimerInterrupt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function will be called by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a> if an <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> wakeup timer interrupt occurs. This can only happen if wakeup timer interrupts are enabled in the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> (which they are not by default). Subclasses may override this function to get control when an <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> wakeup timer interrupt occurs. </p>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>.</p>

</div>
</div>
<a class="anchor" id="a3ecbb26863c8bd4bf8cbacde37b73d4f"></a><!-- doxytag: member="RF22::headerFlags" ref="a3ecbb26863c8bd4bf8cbacde37b73d4f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::headerFlags </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the FLAGS header of the last received message </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The FLAGS header </dd></dl>

<p>References <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>.</p>

<p>Referenced by <a class="el" href="classRF22Datagram.html#ab545144cb8529f5b5ef0dcb77a252eef">RF22Datagram::recvfrom()</a>, and <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>.</p>

</div>
</div>
<a class="anchor" id="a3d8d98b524d14519f6c39d7136b5a422"></a><!-- doxytag: member="RF22::headerFrom" ref="a3d8d98b524d14519f6c39d7136b5a422" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::headerFrom </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the FROM header of the last received message </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The FROM header </dd></dl>

<p>References <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>.</p>

<p>Referenced by <a class="el" href="classRF22Mesh.html#a276fbdde9038cb38e3ba2d6cffa95a4c">RF22Mesh::doArp()</a>, <a class="el" href="classRF22Mesh.html#a340dba041b6d8e83a6ce6a4f613eb112">RF22Mesh::peekAtMessage()</a>, <a class="el" href="classRF22Datagram.html#ab545144cb8529f5b5ef0dcb77a252eef">RF22Datagram::recvfrom()</a>, <a class="el" href="classRF22Mesh.html#a5702996188d7b3941a844fc4d39a6f57">RF22Mesh::recvfromAck()</a>, <a class="el" href="classRF22Mesh.html#ae7a3ab2784aaf45ab2d47e5d9ce5b405">RF22Mesh::route()</a>, and <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>.</p>

</div>
</div>
<a class="anchor" id="a74b21003336cc7c6aac1dad128b1f205"></a><!-- doxytag: member="RF22::headerId" ref="a74b21003336cc7c6aac1dad128b1f205" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::headerId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the ID header of the last received message </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The ID header </dd></dl>

<p>References <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>.</p>

<p>Referenced by <a class="el" href="classRF22Datagram.html#ab545144cb8529f5b5ef0dcb77a252eef">RF22Datagram::recvfrom()</a>, and <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>.</p>

</div>
</div>
<a class="anchor" id="ad61bb70ba171a81fa8803219fdc2a433"></a><!-- doxytag: member="RF22::headerTo" ref="ad61bb70ba171a81fa8803219fdc2a433" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::headerTo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the TO header of the last received message </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The TO header </dd></dl>

<p>References <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>.</p>

<p>Referenced by <a class="el" href="classRF22Datagram.html#ab545144cb8529f5b5ef0dcb77a252eef">RF22Datagram::recvfrom()</a>, and <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>.</p>

</div>
</div>
<a class="anchor" id="ac211ed2b29be32088714b4bfa1ebbe4c"></a><!-- doxytag: member="RF22::init" ref="ac211ed2b29be32088714b4bfa1ebbe4c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initialises this instance and the radio module connected to it. The following steps are taken:</p>
<ul>
<li>Initialise the slave select pin and the SPI interface library</li>
<li>Software reset the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> module</li>
<li>Checks the connected <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> module is either a RF22_DEVICE_TYPE_RX_TRX or a RF22_DEVICE_TYPE_TX</li>
<li>Attaches an interrupt handler</li>
<li>Configures the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> module</li>
<li>Sets the frequncy to 434.0 MHz</li>
<li>Sets the modem data rate to FSK_Rb2_4Fd36 <dl class="return"><dt><b>Returns:</b></dt><dd>true if everything was successful </dd></dl>
</li>
</ul>

<p>Reimplemented in <a class="el" href="classRF22Router.html#ac6037c3300511d0277e42edea8ccf873">RF22Router</a>, and <a class="el" href="classRF22Datagram.html#a7e9eb654f8e8be094c5f2c0531218531">RF22Datagram</a>.</p>

<p>References <a class="el" href="classRF22.html#a68be2dd2c22416a9c70fabea8928ff1a">clearRxBuf()</a>, <a class="el" href="classRF22.html#addd900063898086342232db06edc4008">clearTxBuf()</a>, <a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1ab78263478bc47e320e3e14184310bdb1">FSK_Rb2_4Fd36</a>, <a class="el" href="classRF22.html#a1c572667477ef36daeae01c52f553e5b">reset()</a>, <a class="el" href="classRF22.html#a0e7991fe8e280e2ad1a1b1643e7cf8d7">setFrequency()</a>, <a class="el" href="classRF22.html#adb3ce5021865459e770e45cc434a0dd0">setHeaderFlags()</a>, <a class="el" href="classRF22.html#af446e330a074e528253f3c7706b14b09">setHeaderFrom()</a>, <a class="el" href="classRF22.html#a7a36edc1913d6cec8892af8ea8a28ef7">setHeaderId()</a>, <a class="el" href="classRF22.html#ac45b0f89bb116d546cc5e90410173827">setHeaderTo()</a>, <a class="el" href="classRF22.html#a266974655d5291ba1fa018991a7a818c">setModemConfig()</a>, <a class="el" href="classRF22.html#a3ef02152274ab7ed9f01bf9d14323b2f">setPreambleLength()</a>, <a class="el" href="classRF22.html#ae526f968b1571e8bf71344c2f8a425d5">setPromiscuous()</a>, <a class="el" href="classRF22.html#a4ac022de6099c087a3188c4d6028f97f">setSyncWords()</a>, <a class="el" href="classRF22.html#a5b8a05586f69cbbae0589e5aabf46319">setTxPower()</a>, <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>, and <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="a07786683889cac7f62ff649d5338b838"></a><!-- doxytag: member="RF22::lastRssi" ref="a07786683889cac7f62ff649d5338b838" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::lastRssi </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the RSSI (Receiver Signal Strength Indicator) of the last received message. This measurement is taken when the preamble has been received. It is a (non-linear) measure of the received signal strength. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The RSSI </dd></dl>

</div>
</div>
<a class="anchor" id="a9edc9967b9536074e5f58dd4a5815def"></a><!-- doxytag: member="RF22::readNextFragment" ref="a9edc9967b9536074e5f58dd4a5815def" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::readNextFragment </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>function to copy the next fragment from the receiver FIF) into the receiver buffer </p>

<p>References <a class="el" href="classRF22.html#aa90b554e2ec209f6bd8bcef17b11ebb8">spiBurstRead()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>.</p>

</div>
</div>
<a class="anchor" id="a2f6f295a313e1ebf244b91338ed22f13"></a><!-- doxytag: member="RF22::recv" ref="a2f6f295a313e1ebf244b91338ed22f13" args="(uint8_t *buf, uint8_t *len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::recv </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Turns the receiver on if it not already on. If there is a valid message available, copy it to buf and return true else return false. If a message is copied, *len is set to the length (Caution, 0 length messages are permitted). You should be sure to call this function frequently enough to not miss any messages It is recommended that you call it in your main loop. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Location to copy the received message </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">len</td><td>Pointer to available space in buf. Set to the actual number of octets copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if a valid message was copied to buf </dd></dl>

<p>References <a class="el" href="classRF22.html#af899b8b15c5c4b345e7f9860d45d0292">available()</a>, and <a class="el" href="classRF22.html#a68be2dd2c22416a9c70fabea8928ff1a">clearRxBuf()</a>.</p>

<p>Referenced by <a class="el" href="classRF22Datagram.html#ab545144cb8529f5b5ef0dcb77a252eef">RF22Datagram::recvfrom()</a>.</p>

</div>
</div>
<a class="anchor" id="a1c572667477ef36daeae01c52f553e5b"></a><!-- doxytag: member="RF22::reset" ref="a1c572667477ef36daeae01c52f553e5b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::reset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Issues a software reset to the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> module. Blocks for 1ms to ensure the reset is complete. </p>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>.</p>

</div>
</div>
<a class="anchor" id="a80f1d86f8ce76126639de6aad89c0389"></a><!-- doxytag: member="RF22::resetFifos" ref="a80f1d86f8ce76126639de6aad89c0389" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::resetFifos </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Clears the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> Rx and Tx FIFOs Internal use only </p>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>.</p>

</div>
</div>
<a class="anchor" id="a2bdccb7c4084634d246add95005d5e53"></a><!-- doxytag: member="RF22::resetRxFifo" ref="a2bdccb7c4084634d246add95005d5e53" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::resetRxFifo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Clears the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> Rx FIFO Internal use only </p>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>.</p>

</div>
</div>
<a class="anchor" id="adffb1a63931286ecc01ffec9d99cfa6f"></a><!-- doxytag: member="RF22::resetTxFifo" ref="adffb1a63931286ecc01ffec9d99cfa6f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::resetTxFifo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Clears the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> Tx FIFO Internal use only </p>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="a7c1a0bfb8f05d0af540e37e4883e212e"></a><!-- doxytag: member="RF22::restartTransmit" ref="a7c1a0bfb8f05d0af540e37e4883e212e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::restartTransmit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>ReStart the transmission of the contents of the Tx buffer after a atransmission failure </p>

<p>References <a class="el" href="classRF22.html#ae714b47446f34aca958df75b75f811b3">startTransmit()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>.</p>

</div>
</div>
<a class="anchor" id="a022c0040eb83a6f8a02b274b74a3ba67"></a><!-- doxytag: member="RF22::rssiRead" ref="a022c0040eb83a6f8a02b274b74a3ba67" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::rssiRead </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads and returns the current RSSI value from register RF22_REG_26_RSSI </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The current RSSI value </dd></dl>

<p>References <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>.</p>

</div>
</div>
<a class="anchor" id="a217941f83c9f645350cf7d5d16d8cc3d"></a><!-- doxytag: member="RF22::send" ref="a217941f83c9f645350cf7d5d16d8cc3d" args="(uint8_t *data, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::send </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Loads a message into the transmitter and starts the transmitter. Note that a message length of 0 is permitted, in which case data may be NULL. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Array of data to be sent </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>Number of bytes of data to send. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true </dd></dl>

<p>References <a class="el" href="classRF22.html#a9c7e029590cfe83b364c7c02559575be">fillTxBuf()</a>, <a class="el" href="classRF22.html#ac4aebfef449c26e2dc2a9ef0737bddec">setModeIdle()</a>, and <a class="el" href="classRF22.html#ae714b47446f34aca958df75b75f811b3">startTransmit()</a>.</p>

<p>Referenced by <a class="el" href="classRF22Datagram.html#a316535aeb1cb389b593df5f8f1f38983">RF22Datagram::sendto()</a>.</p>

</div>
</div>
<a class="anchor" id="a6540f75448cca7b21b69bce0b5816cd9"></a><!-- doxytag: member="RF22::sendNextFragment" ref="a6540f75448cca7b21b69bce0b5816cd9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::sendNextFragment </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Internal function to load the next fragment of the current message into the transmitter FIFO Internal use only </p>

<p>References <a class="el" href="classRF22.html#a361154fdf3b19ba6a5a75f832df6a1b8">spiBurstWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>, and <a class="el" href="classRF22.html#ae714b47446f34aca958df75b75f811b3">startTransmit()</a>.</p>

</div>
</div>
<a class="anchor" id="a75b29b4a26da4000b3b1922efc5163aa"></a><!-- doxytag: member="RF22::setFHChannel" ref="a75b29b4a26da4000b3b1922efc5163aa" args="(uint8_t fhch)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::setFHChannel </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fhch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the frequncy hopping channel. Adds fhch * fhs to centre frequency </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fhch</td><td>The channel number </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the selected frquency centre + (fhch * fhs) is within range </dd></dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>, and <a class="el" href="classRF22.html#adb03689501d256ce896ee688c7ce83e0">statusRead()</a>.</p>

</div>
</div>
<a class="anchor" id="a9e005e1170adb82a4b23c3865c059489"></a><!-- doxytag: member="RF22::setFHStepSize" ref="a9e005e1170adb82a4b23c3865c059489" args="(uint8_t fhs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::setFHStepSize </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fhs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the frequency hopping step size. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fhs</td><td>Frequency Hopping step size in 10kHz increments </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if centre + (fhch * fhs) is within limits </dd></dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>, and <a class="el" href="classRF22.html#adb03689501d256ce896ee688c7ce83e0">statusRead()</a>.</p>

</div>
</div>
<a class="anchor" id="a0e7991fe8e280e2ad1a1b1643e7cf8d7"></a><!-- doxytag: member="RF22::setFrequency" ref="a0e7991fe8e280e2ad1a1b1643e7cf8d7" args="(float centre)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::setFrequency </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>centre</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the transmitter and receiver centre frequency </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">centre</td><td>Frequency in MHz. 240.0 to 960.0. Caution, some versions of <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> and derivatives implemented more restricted frequency ranges. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the selected frquency centre + (fhch * fhs) is within range </dd></dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>, and <a class="el" href="classRF22.html#adb03689501d256ce896ee688c7ce83e0">statusRead()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>.</p>

</div>
</div>
<a class="anchor" id="adb3ce5021865459e770e45cc434a0dd0"></a><!-- doxytag: member="RF22::setHeaderFlags" ref="adb3ce5021865459e770e45cc434a0dd0" args="(uint8_t flags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setHeaderFlags </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>flags</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the FLAGS header to be sent in all subsequent messages </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The new FLAGS header value </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22ReliableDatagram.html#aec55325c6ab74809a3ef9c90aef39adc">RF22ReliableDatagram::acknowledge()</a>, <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>, and <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>.</p>

</div>
</div>
<a class="anchor" id="af446e330a074e528253f3c7706b14b09"></a><!-- doxytag: member="RF22::setHeaderFrom" ref="af446e330a074e528253f3c7706b14b09" args="(uint8_t from)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setHeaderFrom </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>from</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the FROM header to be sent in all subsequent messages </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>The new FROM header value </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>, and <a class="el" href="classRF22Datagram.html#ab230f3306fa4fdeb218ac34b728cb3d2">RF22Datagram::setThisAddress()</a>.</p>

</div>
</div>
<a class="anchor" id="a7a36edc1913d6cec8892af8ea8a28ef7"></a><!-- doxytag: member="RF22::setHeaderId" ref="a7a36edc1913d6cec8892af8ea8a28ef7" args="(uint8_t id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setHeaderId </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the ID header to be sent in all subsequent messages </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">id</td><td>The new ID header value </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22ReliableDatagram.html#aec55325c6ab74809a3ef9c90aef39adc">RF22ReliableDatagram::acknowledge()</a>, <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>, and <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>.</p>

</div>
</div>
<a class="anchor" id="ac45b0f89bb116d546cc5e90410173827"></a><!-- doxytag: member="RF22::setHeaderTo" ref="ac45b0f89bb116d546cc5e90410173827" args="(uint8_t to)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setHeaderTo </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>to</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the TO header to be sent in all subsequent messages </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>The new TO header value </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>, and <a class="el" href="classRF22Datagram.html#a316535aeb1cb389b593df5f8f1f38983">RF22Datagram::sendto()</a>.</p>

</div>
</div>
<a class="anchor" id="a575ea3832c613df195bb2ee6201a47b8"></a><!-- doxytag: member="RF22::setMode" ref="a575ea3832c613df195bb2ee6201a47b8" args="(uint8_t mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setMode </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the parameters for the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> Idle mode in register RF22_REG_07_OPERATING_MODE. Idle mode is the mode the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> wil be in when not transmitting or receiving. The default idle mode is RF22_XTON ie READY mode. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>MAsk of mode bits, using RF22_SWRES, RF22_ENLBD, RF22_ENWT, RF22_X32KSEL, RF22_PLLON, RF22_XTON. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac4aebfef449c26e2dc2a9ef0737bddec">setModeIdle()</a>, <a class="el" href="classRF22.html#a1e251effd6282a9a0de7dbffa192930d">setModeRx()</a>, and <a class="el" href="classRF22.html#afe3ecb6c7a99cd007ac1ac1e77b6d5a6">setModeTx()</a>.</p>

</div>
</div>
<a class="anchor" id="ac4aebfef449c26e2dc2a9ef0737bddec"></a><!-- doxytag: member="RF22::setModeIdle" ref="ac4aebfef449c26e2dc2a9ef0737bddec" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setModeIdle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>If current mode is Rx or Tx changes it to Idle. If the transmitter or receiver is running, disables them. </p>

<p>References <a class="el" href="classRF22.html#a575ea3832c613df195bb2ee6201a47b8">setMode()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#a217941f83c9f645350cf7d5d16d8cc3d">send()</a>.</p>

</div>
</div>
<a class="anchor" id="a266974655d5291ba1fa018991a7a818c"></a><!-- doxytag: member="RF22::setModemConfig" ref="a266974655d5291ba1fa018991a7a818c" args="(ModemConfigChoice index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean RF22::setModemConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRF22.html#a76cd019f98e4f17d9ec00e54e5947ca1">ModemConfigChoice</a>&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Select one of the predefined modem configurations. If you need a modem configuration not provided here, use <a class="el" href="classRF22.html#ab1a1260a3f97788ad88e9c68b5d8549e">setModemRegisters()</a> with your own <a class="el" href="structRF22_1_1ModemConfig.html" title="Defines register values for a set of modem configuration registers.">ModemConfig</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>The configuration choice. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if index is a valid choice. </dd></dl>

<p>References <a class="el" href="classRF22.html#ab1a1260a3f97788ad88e9c68b5d8549e">setModemRegisters()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>.</p>

</div>
</div>
<a class="anchor" id="ab1a1260a3f97788ad88e9c68b5d8549e"></a><!-- doxytag: member="RF22::setModemRegisters" ref="ab1a1260a3f97788ad88e9c68b5d8549e" args="(ModemConfig *config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setModemRegisters </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structRF22_1_1ModemConfig.html">ModemConfig</a> *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets all the registered required to configure the data modem in the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a>, including the data rate, bandwidths etc. You cas use this to configure the modem with custom configuraitons if none of the canned configurations in ModemConfigChoice suit you. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">config</td><td>A <a class="el" href="structRF22_1_1ModemConfig.html" title="Defines register values for a set of modem configuration registers.">ModemConfig</a> structure containing values for the modem configuration registers. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structRF22_1_1ModemConfig.html#aae1023d3cf1ca383337b6885be9ad0e4">RF22::ModemConfig::reg_1c</a>, <a class="el" href="structRF22_1_1ModemConfig.html#aabe5ed0b26be68a7b2ce101f51f8321e">RF22::ModemConfig::reg_1f</a>, <a class="el" href="structRF22_1_1ModemConfig.html#a4c83bcce043116762e8b95e39efafc15">RF22::ModemConfig::reg_20</a>, <a class="el" href="structRF22_1_1ModemConfig.html#ab9ed392cf2970e4e20339452a0777776">RF22::ModemConfig::reg_2c</a>, <a class="el" href="structRF22_1_1ModemConfig.html#a94143268bf426df086d05728eb0c4fd2">RF22::ModemConfig::reg_58</a>, <a class="el" href="structRF22_1_1ModemConfig.html#a97b3d513345371a58b5a72984f0f0309">RF22::ModemConfig::reg_69</a>, <a class="el" href="structRF22_1_1ModemConfig.html#a412f4211bc08826afcd89b72cb6229ff">RF22::ModemConfig::reg_6e</a>, <a class="el" href="classRF22.html#a361154fdf3b19ba6a5a75f832df6a1b8">spiBurstWrite()</a>, and <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#a266974655d5291ba1fa018991a7a818c">setModemConfig()</a>.</p>

</div>
</div>
<a class="anchor" id="a1e251effd6282a9a0de7dbffa192930d"></a><!-- doxytag: member="RF22::setModeRx" ref="a1e251effd6282a9a0de7dbffa192930d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setModeRx </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>If current mode is Tx or Idle, changes it to Rx. Starts the receiver in the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a>. </p>

<p>References <a class="el" href="classRF22.html#a575ea3832c613df195bb2ee6201a47b8">setMode()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#af899b8b15c5c4b345e7f9860d45d0292">available()</a>, and <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>.</p>

</div>
</div>
<a class="anchor" id="afe3ecb6c7a99cd007ac1ac1e77b6d5a6"></a><!-- doxytag: member="RF22::setModeTx" ref="afe3ecb6c7a99cd007ac1ac1e77b6d5a6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setModeTx </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>If current mode is Rx or Idle, changes it to Rx. Starts the transmitter in the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a>. </p>

<p>References <a class="el" href="classRF22.html#a575ea3832c613df195bb2ee6201a47b8">setMode()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ae714b47446f34aca958df75b75f811b3">startTransmit()</a>.</p>

</div>
</div>
<a class="anchor" id="a3ef02152274ab7ed9f01bf9d14323b2f"></a><!-- doxytag: member="RF22::setPreambleLength" ref="a3ef02152274ab7ed9f01bf9d14323b2f" args="(uint8_t nibbles)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setPreambleLength </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>nibbles</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the message preamble length in RF22_REG_34_PREAMBLE_LENGTH </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">nibbles</td><td>Preamble length in nibbles of 4 bits each. </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>.</p>

</div>
</div>
<a class="anchor" id="ae526f968b1571e8bf71344c2f8a425d5"></a><!-- doxytag: member="RF22::setPromiscuous" ref="ae526f968b1571e8bf71344c2f8a425d5" args="(boolean promiscuous)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setPromiscuous </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>promiscuous</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Tells the receiver to accept messages with any TO address, not just messages addressed to this node or the broadcast address </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">promiscuous</td><td>true if you wish to receive messages with any TO address </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ac022de6099c087a3188c4d6028f97f"></a><!-- doxytag: member="RF22::setSyncWords" ref="a4ac022de6099c087a3188c4d6028f97f" args="(uint8_t *syncWords, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setSyncWords </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>syncWords</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the sync words for transmit and receive in registers RF22_REG_36_SYNC_WORD3 to RF22_REG_39_SYNC_WORD0 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">syncWords</td><td>Array of sync words </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>Number of sync words to set </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a361154fdf3b19ba6a5a75f832df6a1b8">spiBurstWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>.</p>

</div>
</div>
<a class="anchor" id="a5b8a05586f69cbbae0589e5aabf46319"></a><!-- doxytag: member="RF22::setTxPower" ref="a5b8a05586f69cbbae0589e5aabf46319" args="(uint8_t power)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setTxPower </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>power</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the transmitter power output level in register RF22_REG_6D_TX_POWER. Be a good neighbour and set the lowest power level you need. After <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>, the power wil be set to RF22_TXPOW_8DBM. Caution: In some countries you may only select RF22_TXPOW_17DBM if you are also using frequency hopping. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">power</td><td>Transmitter power level, one of RF22_TXPOW_* </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>.</p>

</div>
</div>
<a class="anchor" id="aaa1cfb845d90a0d83a508e2bc7f3492f"></a><!-- doxytag: member="RF22::setWutPeriod" ref="aaa1cfb845d90a0d83a508e2bc7f3492f" args="(uint16_t wtm, uint8_t wtr=0, uint8_t wtd=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::setWutPeriod </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>wtm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>wtr</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>wtd</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the wakeup timer period registers RF22_REG_14_WAKEUP_TIMER_PERIOD1, RF22_REG_15_WAKEUP_TIMER_PERIOD2 and RF22_REG_16_WAKEUP_TIMER_PERIOD3 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">wtm</td><td>Wakeup timer mantissa value </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">wtr</td><td>Wakeup timer exponent R value </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">wtd</td><td>Wakeup timer exponent D value </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classRF22.html#a361154fdf3b19ba6a5a75f832df6a1b8">spiBurstWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="aa90b554e2ec209f6bd8bcef17b11ebb8"></a><!-- doxytag: member="RF22::spiBurstRead" ref="aa90b554e2ec209f6bd8bcef17b11ebb8" args="(uint8_t reg, uint8_t *dest, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::spiBurstRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads a number of consecutive registers from the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> using burst read mode </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>Register number of the first register, one of RF22_REG_* </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dest</td><td>Array to write the register values to. Must be at least len bytes </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>Number of bytes to read </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>, <a class="el" href="classRF22.html#a9edc9967b9536074e5f58dd4a5815def">readNextFragment()</a>, and <a class="el" href="classRF22.html#a7a0b9fb632f05b2eb0c559b7edb99ef5">wutRead()</a>.</p>

</div>
</div>
<a class="anchor" id="a361154fdf3b19ba6a5a75f832df6a1b8"></a><!-- doxytag: member="RF22::spiBurstWrite" ref="a361154fdf3b19ba6a5a75f832df6a1b8" args="(uint8_t reg, uint8_t *src, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::spiBurstWrite </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Write a number of consecutive registers using burst write mode </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>Register number of the first register, one of RF22_REG_* </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>Array of new register values to write. Must be at least len bytes </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>Number of bytes to write </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="classRF22.html#a6540f75448cca7b21b69bce0b5816cd9">sendNextFragment()</a>, <a class="el" href="classRF22.html#ab1a1260a3f97788ad88e9c68b5d8549e">setModemRegisters()</a>, <a class="el" href="classRF22.html#a4ac022de6099c087a3188c4d6028f97f">setSyncWords()</a>, and <a class="el" href="classRF22.html#aaa1cfb845d90a0d83a508e2bc7f3492f">setWutPeriod()</a>.</p>

</div>
</div>
<a class="anchor" id="a04d7944afdf214f1388ea2bbe52f2fee"></a><!-- doxytag: member="RF22::spiRead" ref="a04d7944afdf214f1388ea2bbe52f2fee" args="(uint8_t reg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::spiRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads a single register from the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>Register number, one of RF22_REG_* </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value of the register </dd></dl>

<p>Referenced by <a class="el" href="classRF22.html#ad2b1d47ce5efa8e38330be8d11741dab">adcRead()</a>, <a class="el" href="classRF22.html#a24eb41c972beb66d4546552e571c2e46">ezmacStatusRead()</a>, <a class="el" href="classRF22.html#ae4d40dd937c71fa0094a838297fc315d">handleInterrupt()</a>, <a class="el" href="classRF22.html#a3ecbb26863c8bd4bf8cbacde37b73d4f">headerFlags()</a>, <a class="el" href="classRF22.html#a3d8d98b524d14519f6c39d7136b5a422">headerFrom()</a>, <a class="el" href="classRF22.html#a74b21003336cc7c6aac1dad128b1f205">headerId()</a>, <a class="el" href="classRF22.html#ad61bb70ba171a81fa8803219fdc2a433">headerTo()</a>, <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>, <a class="el" href="classRF22.html#a022c0040eb83a6f8a02b274b74a3ba67">rssiRead()</a>, and <a class="el" href="classRF22.html#adb03689501d256ce896ee688c7ce83e0">statusRead()</a>.</p>

</div>
</div>
<a class="anchor" id="a02bb8ac61e753e0354b87be423adf2e4"></a><!-- doxytag: member="RF22::spiWrite" ref="a02bb8ac61e753e0354b87be423adf2e4" args="(uint8_t reg, uint8_t val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::spiWrite </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Writes a single byte to the <a class="el" href="classRF22.html" title="Send and receive unaddressed, unreliable datagrams.">RF22</a> </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>Register number, one of RF22_REG_* </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>The value to write </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="classRF22.html#ad2b1d47ce5efa8e38330be8d11741dab">adcRead()</a>, <a class="el" href="classRF22.html#ac211ed2b29be32088714b4bfa1ebbe4c">init()</a>, <a class="el" href="classRF22.html#a1c572667477ef36daeae01c52f553e5b">reset()</a>, <a class="el" href="classRF22.html#a80f1d86f8ce76126639de6aad89c0389">resetFifos()</a>, <a class="el" href="classRF22.html#a2bdccb7c4084634d246add95005d5e53">resetRxFifo()</a>, <a class="el" href="classRF22.html#adffb1a63931286ecc01ffec9d99cfa6f">resetTxFifo()</a>, <a class="el" href="classRF22.html#a75b29b4a26da4000b3b1922efc5163aa">setFHChannel()</a>, <a class="el" href="classRF22.html#a9e005e1170adb82a4b23c3865c059489">setFHStepSize()</a>, <a class="el" href="classRF22.html#a0e7991fe8e280e2ad1a1b1643e7cf8d7">setFrequency()</a>, <a class="el" href="classRF22.html#adb3ce5021865459e770e45cc434a0dd0">setHeaderFlags()</a>, <a class="el" href="classRF22.html#af446e330a074e528253f3c7706b14b09">setHeaderFrom()</a>, <a class="el" href="classRF22.html#a7a36edc1913d6cec8892af8ea8a28ef7">setHeaderId()</a>, <a class="el" href="classRF22.html#ac45b0f89bb116d546cc5e90410173827">setHeaderTo()</a>, <a class="el" href="classRF22.html#a575ea3832c613df195bb2ee6201a47b8">setMode()</a>, <a class="el" href="classRF22.html#ab1a1260a3f97788ad88e9c68b5d8549e">setModemRegisters()</a>, <a class="el" href="classRF22.html#a3ef02152274ab7ed9f01bf9d14323b2f">setPreambleLength()</a>, <a class="el" href="classRF22.html#ae526f968b1571e8bf71344c2f8a425d5">setPromiscuous()</a>, <a class="el" href="classRF22Datagram.html#ab230f3306fa4fdeb218ac34b728cb3d2">RF22Datagram::setThisAddress()</a>, <a class="el" href="classRF22.html#a5b8a05586f69cbbae0589e5aabf46319">setTxPower()</a>, <a class="el" href="classRF22.html#ae714b47446f34aca958df75b75f811b3">startTransmit()</a>, and <a class="el" href="classRF22.html#a198541714d52ac7bc2c9ef10c2e28bb2">temperatureRead()</a>.</p>

</div>
</div>
<a class="anchor" id="ae714b47446f34aca958df75b75f811b3"></a><!-- doxytag: member="RF22::startTransmit" ref="ae714b47446f34aca958df75b75f811b3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::startTransmit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Start the transmission of the contents of the Tx buffer </p>

<p>References <a class="el" href="classRF22.html#a6540f75448cca7b21b69bce0b5816cd9">sendNextFragment()</a>, <a class="el" href="classRF22.html#afe3ecb6c7a99cd007ac1ac1e77b6d5a6">setModeTx()</a>, and <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#a7c1a0bfb8f05d0af540e37e4883e212e">restartTransmit()</a>, and <a class="el" href="classRF22.html#a217941f83c9f645350cf7d5d16d8cc3d">send()</a>.</p>

</div>
</div>
<a class="anchor" id="adb03689501d256ce896ee688c7ce83e0"></a><!-- doxytag: member="RF22::statusRead" ref="adb03689501d256ce896ee688c7ce83e0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::statusRead </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads and returns the device status register RF22_REG_02_DEVICE_STATUS </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The value of the device status register </dd></dl>

<p>References <a class="el" href="classRF22.html#a04d7944afdf214f1388ea2bbe52f2fee">spiRead()</a>.</p>

<p>Referenced by <a class="el" href="classRF22.html#a75b29b4a26da4000b3b1922efc5163aa">setFHChannel()</a>, <a class="el" href="classRF22.html#a9e005e1170adb82a4b23c3865c059489">setFHStepSize()</a>, and <a class="el" href="classRF22.html#a0e7991fe8e280e2ad1a1b1643e7cf8d7">setFrequency()</a>.</p>

</div>
</div>
<a class="anchor" id="a198541714d52ac7bc2c9ef10c2e28bb2"></a><!-- doxytag: member="RF22::temperatureRead" ref="a198541714d52ac7bc2c9ef10c2e28bb2" args="(uint8_t tsrange=RF22_TSRANGE_M64_64C, uint8_t tvoffs=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t RF22::temperatureRead </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>tsrange</em> = <code>RF22_TSRANGE_M64_64C</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>tvoffs</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads the on-chip temperature sensoer </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">tsrange</td><td>Specifies the temperature range to use. One of RF22_TSRANGE_* </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tvoffs</td><td>Specifies the temperature value offset. This is actually signed value added to the measured temperature value </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The measured temperature. </dd></dl>

<p>References <a class="el" href="classRF22.html#ad2b1d47ce5efa8e38330be8d11741dab">adcRead()</a>, and <a class="el" href="classRF22.html#a02bb8ac61e753e0354b87be423adf2e4">spiWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="aaab37b212a4f003b00040caec8e1a343"></a><!-- doxytag: member="RF22::waitAvailable" ref="aaab37b212a4f003b00040caec8e1a343" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::waitAvailable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Starts the receiver and blocks until a valid received message is available. </p>

<p>References <a class="el" href="classRF22.html#af899b8b15c5c4b345e7f9860d45d0292">available()</a>.</p>

</div>
</div>
<a class="anchor" id="ae7ba6ed148434bea785b2aaa1dedf2d3"></a><!-- doxytag: member="RF22::waitAvailableTimeout" ref="ae7ba6ed148434bea785b2aaa1dedf2d3" args="(uint16_t timeout)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool RF22::waitAvailableTimeout </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>timeout</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Starts the receiver and blocks until a received message is available or a timeout </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">timeout</td><td>Maximum time to wait in milliseconds. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if a message is available </dd></dl>

<p>References <a class="el" href="classRF22.html#af899b8b15c5c4b345e7f9860d45d0292">available()</a>.</p>

</div>
</div>
<a class="anchor" id="a8ce6d4f63ce1ea37ab108c01f9476555"></a><!-- doxytag: member="RF22::waitPacketSent" ref="a8ce6d4f63ce1ea37ab108c01f9476555" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RF22::waitPacketSent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Blocks until the current message (if any) has been completely sent </p>

<p>Referenced by <a class="el" href="classRF22ReliableDatagram.html#aec55325c6ab74809a3ef9c90aef39adc">RF22ReliableDatagram::acknowledge()</a>, and <a class="el" href="classRF22ReliableDatagram.html#a47e85bffb81a3acdff6d5f15ce7bb65e">RF22ReliableDatagram::sendtoWait()</a>.</p>

</div>
</div>
<a class="anchor" id="a7a0b9fb632f05b2eb0c559b7edb99ef5"></a><!-- doxytag: member="RF22::wutRead" ref="a7a0b9fb632f05b2eb0c559b7edb99ef5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t RF22::wutRead </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reads the wakeup timer value in registers RF22_REG_17_WAKEUP_TIMER_VALUE1 and RF22_REG_18_WAKEUP_TIMER_VALUE2 </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The wakeup timer value </dd></dl>

<p>References <a class="el" href="classRF22.html#aa90b554e2ec209f6bd8bcef17b11ebb8">spiBurstRead()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="RF22_8h_source.html">RF22.h</a></li>
<li>RF22.cpp</li>
</ul>
</div>


<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
